<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>汽车销售平台 - 专业汽车销售管理系统</title>
    <meta name="description" content="专业的汽车销售管理平台，提供汽车浏览、销售统计、销售排行等功能">
    <meta name="theme-color" content="#409EFF">
    <!-- 预加载字体，减少布局偏移 -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
      body {
        font-family: 'Noto Sans SC', 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      }
      /* 添加页面加载动画 */
      .app-loading {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f0f2f5;
        z-index: 9999;
        transition: opacity 0.3s;
      }
      .app-loading.fade-out {
        opacity: 0;
      }
      .loading-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(64, 158, 255, 0.2);
        border-top-color: #409EFF;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      @keyframes spin {
        to { transform: rotate(360deg); }
      }
    </style>
  </head>
  <body>
    <!-- 页面加载动画 -->
    <div class="app-loading" id="app-loading">
      <div class="loading-spinner"></div>
    </div>
    
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <script>
      // 页面加载完成后移除加载动画
      window.addEventListener('load', () => {
        const loader = document.getElementById('app-loading');
        if (loader) {
          loader.classList.add('fade-out');
          setTimeout(() => {
            loader.style.display = 'none';
          }, 300);
        }
      });
    </script>
  </body>
</html>